<?php

use Fisharebest\Webtrees\I18N;

?>

<form method="post" action="<?= e(route('link-media-to-record', ['tree' => $tree->name(), 'xref' => $media->xref()])) ?>" id="wt-modal-form">
    <?= csrf_field() ?>

    <?= view('modals/header', ['title' => I18N::translate('Link this media object to a family')]) ?>

    <div class="modal-body">
        <div class="form-group">
            <label class="col-form-label" for="link">
                <?= I18N::translate('Family') ?>
            </label>
            <?= view('components/select-family', ['name' => 'link', 'tree' => $tree]) ?>
        </div>
    </div>

    <?= view('modals/footer-save-cancel') ?>
</form>

